﻿import xmlrpclib
import simplejson
sLocal = xmlrpclib.Server('http://localhost:8081/xmlrpc/')
sLongTd = xmlrpclib.Server('http://longtdbk.appspot.com/xmlrpc/')

keyNguoiDung_deploy ="aghsb25ndGRia3IRCxIJTmd1b2lEdW5nGNGMAQw"
keyLongTd = "aghsb25ndGRia3IPCxIJTmd1b2lEdW5nGD8M"
keyLocal = "aghsb25ndGRia3IPCxIJTmd1b2lEdW5nGCoM"

#print sLongTd.app.getAllNganhNghe(keyNguoiDung_deploy,0)
#print sLocal.app.deleteNganhNghe(keyLocal,190)
TenThuongHieu = "Thuong hieu manh me toan quoc"
MieuTa = "Thuong hieu rat rat lon"
Email = "toancau223@gmail.com"
SoDienThoai = "01453535353"
LinhVucID = 163
NguoiLienHe = "Long TD BK"
QuiMoID = 66
Website = "http://toancau.com.vn.here"
AnhDaiDien = "/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gNzUK/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgAawB4AwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A8DxS4qTbQF5qTQII/MnRM4yetd/pGl3VzaBo9QktockJEinGBwCfeuN0uItdFgv3BnOM16lZRfZ7CCIHcBGOe"
ViTriText = "ha Noi, Viet Nam"
lat  =  "20.996320146172714"
lng = "105.85160017395015"
TrangThaiID = 164
NguoiDungID = 0

NganhNgheID = 190
TinhThanhID = 56
NhaTuyenDungID = 217
MucLuongID = 80
DoiTuongs = [171, 172]
LoaiHinhID = 88
CapBacID = 93
YeuCau = "Khong co "
MieuTa = "Khong co"
ChucDanh = "Ky su xay dung "
NgayKetThuc = "14/4/2011"
#print sLongTd.app.getAllDoiTuong(keyLongTd)
DoiTuongIDLocal = 168
#print sLongTd.app.getDonDangTuyenDoiTuong(keyNguoiDung_deploy,94004,0)
#print sLongTd.app.getNganhNghe("aghsb25ndGRia3IRCxIJTmd1b2lEdW5nGKGWAww",0,0)
#print sLongTd.app.getAllDonDangTuyen(0,0,"","","",0,0,0,0,0,0,0)
#print sLongTd.app.getGenre()
#print sLongTd.app.getNhaTuyenDungRadian(lat, lng,"0.1")
#print sLongTd.app.getQuiMo(keyNguoiDung_deploy,0)
#print sLongTd.app.getNhaTuyenDung(keyNguoiDung_deploy,"","",0,0,0,0)
#print sLongTd.app.getDoiTuong(keyNguoiDung_deploy,0)
#print sLongTd.app.getCapBac(keyNguoiDung_deploy,0)
#print sLongTd.app.getDonDangTuyen(keyNguoiDung_deploy,0,0,"","", "", 0,0,0,0,0,0,0)
#print sLongTd.app.getTinhThanh(keyNguoiDung_deploy,0)
#print sLongTd.app.updateTenTrangThaiDonDangTuyen(keyLongTd, 59002, u"Hợp lệ")
#print sLongTd.app.getDonDangTuyen(keyNguoiDung_deploy,0,0,"N","","",0,0,0,0,0,0,0,0)
#print sLongTd.app.addDonDangTuyen(keyNguoiDung_deploy, NgayKetThuc, MieuTa, YeuCau, 76001, NganhNgheID, ChucDanh, MucLuongID, LoaiHinhID, TinhThanhID, CapBacID)
#print sLongTd.app.addNhaTuyenDung(keyLocal,TenThuongHieu, MieuTa, Email, SoDienThoai, LinhVucID, NguoiLienHe, QuiMoID, "",  Website, ViTriText, lat, lng, NguoiDungID)
#print sLongTd.app.getMucLuong(keyNguoiDung_deploy,0)
#print sLocal.app.addDonDangTuyen(keyLocal, NgayKetThuc, MieuTa, "Khong", NhaTuyenDungID, NganhNgheID, "Truong phong", MucLuongID, LoaiHinhID, TinhThanhID, CapBacID)
#print sLocal.app.getNhaTuyenDungRadian(20.996320146172714,105.85160017395015,0.1)
#print sLongTd.app.getDonDangTuyen(keyNguoiDung_deploy,0,0,"","","",0,0,0,0,28001,0,0,0)
#   TinhThanhID , CapBacID , TrangThaiID, MucLuongID,LoaiHinhID, LinhVucID, NganhNgheID, DoiTuongID                                                           MucLuong,  
#print sLongTd.app.getDonDangTuyen(keyNguoiDung_deploy,0,0,"N","","",62001,68001,0,27002,28001,47001,46002,0)
print sLongTd.app.getAllDonDangTuyen(0,0,"","","",0,68001,0,0,0,0,0)
#print  sLocal.app.getDonDangTuyen(keyLongTd,0,0,"N","","",55,0,0,0,0,158,160,0)
#print  sLocal.app.getAllDonDangTuyen(0,0,"K","","",56,0,0,0,0,0,0)
#print sLongTd.app.getAllDonDangTuyen(0,0,"N","","",62001,0,0,0,0,0,0)
#print sLocal.app.updateNhaTuyenDung(keyLocal,217,TenThuongHieu, MieuTa, Email, SoDienThoai, LinhVucID, NguoiLienHe, QuiMoID, AnhDaiDien,  Website, ViTriText, lat, lng, NguoiDungID)
#print sLocal.app.deleteDonDangTuyen(keyLocal, 134)
#print sLocal.app.getDoiTuong(keyLocal, 0)

#print sLocal.app.getTrangThai(keyLocal,0,"Hợp lệ")
#print sLocal.app.updateNhaTuyenDung(keyLocal, 217,TenThuongHieu, MieuTa, SoDienThoai, LinhVucID, "Long td", QuiMoID, AnhDaiDien,  Website, ViTriText, lat, lng)
#print sLocal.app.getDonDangTuyen(keyLocal,0,0,"","","",0,0,0,0,0,0,0,0)
#print sLocal.app.updateDonDangTuyen(keyLocal,228, "18/4/2011", MieuTa, "Khong co gi", NganhNgheID, ChucDanh, MucLuongID, LoaiHinhID, TinhThanhID, CapBacID)
#print sLocal.app.updateTenTrangThaiDonDangTuyen(keyLocal, 228, "Hợp lệ")
#print sLocal.app.getDonDangTuyenDoiTuong(keyLocal,224,0)
#print sLocal.app.addDonDangTuyenDoiTuong(keyLocal,224, 171)
#print sLocal.app.getDonDangTuyen(keyLocal,0, 228,0,0,0,0,0,0)
#print sLocal.app.getAllDoiTuong(keyLocal)
#print sLocal.app.deleteDoiTuong(keyLocal,168)
#print sLocal.app.getNhaTuyenDung(keyLocal,"","",0,0,0,0)
#print sLocal.app.getDonDangTuyen(keyLocal, 0,0,0,0,0,0,0,0)
#print sLocal.app.addDonDangTuyen(keyLocal, NgayKetThuc, MieuTa, YeuCau, NhaTuyenDungID, NganhNgheID, ChucDanh, MucLuongID, LoaiHinhID, TinhThanhID, CapBacID)
#print sLocal.app.addNhaTuyenDung(keyLocal, TenThuongHieu, MieuTa, Email, SoDienThoai, LinhVucID, NguoiLienHe, QuiMoID, AnhDaiDien,  Website, ViTriText, lat, lng, TrangThaiID, NguoiDungID)
